package com.ibm.spatiotemp.utils;

import com.fasterxml.jackson.databind.JsonNode;

public abstract class JSonInterface {

	public abstract void buildInstanceByJsonString(String jsonstr);
	public abstract void buildInstanceByJsonString(JsonNode node);
	
	/*transform instance to json format,
	 *  call be reconstructed to instnce 
	 * via buildInstanceByJsonString*/
	public abstract String toJsonFormat();
	
	@Override
	public String toString(){
		return toJsonFormat();
	}
}
